﻿function vm() {
    var self = this;

    self.Students = ko.observableArray();

    self.Title = "Hello";
}

var demo;

$(document).ready(function () {

    toastr.info("welcome");

    demo = new vm();
   
    ko.applyBindings(demo);

    $.get("api/Student", function (data) {
        demo.Students(data);
    });
});